# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
pkgname=libtickit
pkgver=0.4.4
pkgrel=0
pkgdesc="library that provides an abstracted mechanism for building interactive full-screen terminal programs"
url="https://www.leonerd.org.uk/code/libtickit/"
arch="all"
license="MIT"
depends_dev="libtermkey-dev"
makedepends="$depends_dev libtool"
checkdepends="perl-test-harness-utils"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="https://launchpad.net/libtickit/trunk/v${pkgver%.*}/+download/libtickit-$pkgver.tar.gz"

prepare() {
	default_prepare
	sed -i -e "s/PREFIX=\/usr\/local/PREFIX=\/usr/g" Makefile
}

build() {
	make PREFIX=/usr
}

check() {
	# test fails on the builders
	rm t/11term-output-screen.c
	TERM=linux make test
}

package() {
	make install DESTDIR="$pkgdir"
}

sha512sums="
9f06c10587e8a3176d2f7b5d7a86b139eb08b04d48a0edf5eac3bdf4aa3f82edb5afc1ae9e54352a7bb76f352611039c444df6c86fc2eb605eebb3058924c77f  libtickit-0.4.4.tar.gz
"
